home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 1 (Walnut Creek)
/
Aminet - June 1993 [Walnut Creek].iso
/
aminet
/
os20
/
cdity
/
yak14a.lha
/
Yak
/
Source
/
pri.c
< prev
next >
Wrap
C/C++ Source or Header
|
1993-04-21
|
428b
|
29 lines
/*
* pri.c
*
* Simple priority alteration routine for Yak.
*
* MWS, 12-Sep-92
*/
#include <exec/types.h>
#include <exec/tasks.h>
#include <proto/exec.h>
#include "yak.h"
static LONG priority[2] = {0,5};
void __regargs
MyPri(UWORD which)
{
static BOOL firsttime = TRUE;
LONG oldpri;
oldpri = SetTaskPri(FindTask(NULL), priority[which]);
if (firsttime)
{
priority[ORIGINAL] = oldpri;
firsttime = FALSE;
}
}